import Mock from 'mockjs'
import homeAPI from './mockServerData/home'
import User from './mockServerData/user'
import Permissions from './mockServerData/permission'
// 使用 Mock
//定义mock 请求拦截
Mock.mock('api/home/getData',homeAPI.getStaticalData)

Mock.mock('api/user/createUser','post',User.createUser)
Mock.mock('api/user/deleteUser','post',User.deleteUser)
Mock.mock(/api\/user\/getUserList/,'get',User.getUserList)
Mock.mock('api/user/batchremove','post',User.batchremove)
Mock.mock('api/user/updateUser','post',User.updateUser)

Mock.mock(/api\/permission\/getMenu/,'post',Permissions.getMenu)
